home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Utilities Professional 1-1500
/
Utilities Professional 1-1500 (1994)(WPD)[!].iso
/
12511500
/
var1312.dms
/
var1312.adf
/
HP11
/
KBD.H
< prev
next >
Wrap
C/C++ Source or Header
|
1991-06-11
|
714b
|
21 lines
/* Define type Decoder which is a function with a short * argument and which
return an enum KeyTypes. These functions do the keyboard decoding for prefixes */
typedef enum KeyTypes (*Decoder)(short *);
/* One key of the keyboard structure : */
struct Key {
enum KeyTypes Sort; /* The type of key */
union { /* Different data for each type */
Decoder suffix; /* Prefix ==> decoder function */
LONG act; /* Action number */
LONG code; /* Instruction number */
} Data;
};
/* These defines are done to simplify access to the components */
#define Act Data.act
#define Code Data.code
#define Suffix Data.suffix
extern struct Key mainKbd[3 * NUMKEYS]; /* The main, f & g key sequences */